Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 13 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Decision takenQuestion: should a platform whose driver was refused (the driver exists on the host but its check failed) also report 0 slots, like a platform with no driver at all?
Why: it is what the code does today and what the triage proposed; the bug is only about hosts with no driver. No new test: the audit flagged the refused-driver branch of Reverting: a follow-up that also zeroes rejected platforms in Written by an agent. |
… doctor skips the reserve of a platform with no driver; drop a manual line the code says (#1689)
Review ledgerRound 1: 9912abd {"findings":[{"id":"R1","role":"code","class":"output malformed with no served platform","outcome":"fixed","path":"src/cli/format.ts","round":"1","fix":"747a57006f2e3d79af1886cd1b475dc132c97a7b"},{"id":"R2","role":"code","class":"capped global limit counts unserved records","outcome":"nonblocking","path":"src/core/capacity/serving-only.ts","round":"1"},{"id":"R3","role":"code","class":"two sites decide one reserve rule","outcome":"fixed","path":"src/core/doctor.ts","round":"1","fix":"747a57006f2e3d79af1886cd1b475dc132c97a7b"},{"id":"R4","role":"claims","class":"documentation 7","outcome":"fixed","path":"src/core/capacity/AGENTS.md","round":"1","fix":"747a57006f2e3d79af1886cd1b475dc132c97a7b"}]}Written by an agent. |
Review notesNot blocking, not verified. Each is one reviewer's claim.
Written by an agent. |
Closes #1689
Status
Implement: done Review: round 1 + fix-check, 0 open Hardware: Windows check done on DesktopWindows Gate: running
Next: gate
Done when
src/core/capacity/serving-only.ts, wired increate-core.ts; test: "reports no iOS device or running slot, no iOS warm reserve, and a global running limit of the Android slots alone") — red on the repro branch, green here; the audit's probes break it.warm-pool/converger.ts, same test) — same test; doctor's reserve matches it (doctor-warm-pool-targets.test.ts).statusprints no capacity line and no reserve entry for it (cli/format.ts; test: "simlock status prints no iOS capacity line and no iOS warm reserve for a worker that reports 0 iOS devices and 0 iOS running slots") — that test, plus a row for a worker with no served platform.status --jsonkeepscapacity.ioswith every figure 0; no protocol bump — no contract or protocol change in the diff; seen on Windows (next line).statusprintedRunning global: 0 + 0 reserved/1, only the Android capacity line andwarm pool: enabled, reserve android 0;status --jsonhadcapacity.iosall 0 andcapacity.global.maxRunning1 — run on DesktopWindows at 9912abd; the later fix commit only changes the no-served-platform line and doctor.Assumptions
server-requests.test.ts, whose global figure now reads 1 because its harness has an iOS driver only.hasDriveralready decides.Review
Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 2 blocking, 2 fixed, 1 notes. Claims review: 1 blocking, 1 fixed, 0 notes.
Rounds: 1. Tokens: 2.3M.
Runs: 10. Cost USD: 4.0813. Agent seconds: 1884.
Assessment: complete
Written by an agent.